
    <div id="content">

<?php

        foreach( $blogArticles as $post ) {

            $articleUrl = $this->url->blogArticle($post);
            $text = $post->getArticleText();

            viewPost( 'list', $this->loginUser, $this->blogUser, $this->url, $post, $text, $articleUrl );

        }

?>


      <div class="post-1 post type-post status-publish format-standard hentry category-1 post" id="post-1">
        <!-- post div -->
        <h2 class="title">
          <a href="http://g5/test/wordpress3/?p=1" title="Permalink to 世界，你好！">世界，你好！</a></h2>
        <div class="post-info-top">
          <span class="post-info-date">
            作者: glenn
            日期: <a href="http://g5/test/wordpress3/?p=1" title="上午 9:09" rel="bookmark">2011 年 7 月 13 日</a>
          </span>
          <span id="gotocomments">
            <a href="http://g5/test/wordpress3/?p=1#comments" title="《世界，你好！》上的評論">1 條評論</a>
          </span>
        </div>
        <div class="clear">
        </div>
        <div class="entry">
          <a href="http://g5/test/wordpress3/?p=1" title="世界，你好！"></a>
          <p>歡迎使用 WordPress。這是系統自動生成的演示文章。編輯或者刪除它，然后開始您的博客！
          </p>
        </div>
        <!-- END entry -->
      </div>
      <!-- END post -->





      <?php  if( $this->pageLimit ) { echo '<div>'. $this->pageLimit->blogRender() .'</div>'; }  ?>


    </div>
    <!--content-->


    <?php include 'block_sidebar.php'; ?>





<script type="text/javascript">

    app.doResultHook = function( o ) {
        //console.log(o); // debug
        o = o || {};
        if( o.nameKey=='adminBlogArticle' && o.action=='new' && o.successType==1 ) {
            //app.popupWindowLink.close();
            //document.location.reload();
            setTimeout("app.popupWindowLink.close()",500);
            setTimeout("document.location.reload()",500);
            return;
        }
        else if( o.nameKey=='adminBlogArticle' && o.action=='edit' && o.successType==1 ) {
            setTimeout("app.popupWindowLink.close()",500);
            setTimeout("document.location.reload()",500);
            return;
        }

    }

</script>


</body>